package com.itheima.system.pojo.baiduAi;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

/**
 * @author qiankaofei
 * @version 1.0
 * @date 2020/11/25 20:26
 *
 */
@Data
@NoArgsConstructor
@ToString
public class FaceLoginResult implements Serializable {

    /**
     * 二维码的状态
     *
     * state:
     *      0： 登录失败
     *      -1: 未扫描
     *      1： 登录成功
     */
    private String state;

    /**
     * 登录信息
     */
    private String token;

    /**
     * 用户id
     */
    private String userId;

    public FaceLoginResult(String state, String token, String userId) {
        this.state = state;
        this.token = token;
        this.userId = userId;
    }

    public FaceLoginResult(String state) {
        this.state = state;
    }



}
